#pragma once
#ifndef PLAYER_H
#define PLAYER_H

#include <map>
#include <vector>
//#include "gamecomponent.h"
#include "Unit.h"
class Player :	public GameComponent
{
private:
	/**
		This map is used to store each players resources.  The types and starting values of resources are read in from
		file at initialization and are then altered by resource collection units during play.
	**/
	std::map<std::string, float> resources;

	std::vector<GameComponent* >	resource_collectors;

	std::vector<GameComponent* >	physical_components;
	
	std::vector<GameComponent* >	military_components;




	void collectResources();

	

public:
	Player(void);
	Player(char* fname);
	~Player(void);

	void addUnit(string fname);
};

#endif